import React from 'react'

import { useNavigate } from "react-router-dom";

export default function Jump() {
  const nav = useNavigate()

  const jump=()=>{
    nav("/home", {
      replace: true
    })
  }

  return (
    <>
      <button onClick={jump}>跳转到home</button>
    </>
  )
}